package com.atguigu.yygh.hosp.mapper;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

/**
 * @author:ahang
 * @create:2022-09-03 0:31
 * @Description:
 */
public interface ScheduleRepository extends MongoRepository<Schedule,String> {

    /**
     * 根据 医院编号+排班编号 查询排班信息
     * @param hoscode
     * @param hosScheduleId
     * @return
     */
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
